/**
 * 
 */
package org.t2.backstage.module.giftcode.model;

import org.banish.sql.core.annotation.Column;
import org.banish.sql.core.annotation.Id;
import org.banish.sql.core.annotation.Table;
import org.banish.sql.core.annotation.Id.Strategy;
import org.banish.sql.core.entity.AbstractEntity;
import org.gaming.service.repository.annotation.NoCache;
import org.springframework.stereotype.Repository;

/**
 * @author YY
 *
 */
@Repository
@NoCache
@Table(comment = "共享礼包码使用情况表", dbAlias = "backdata")
public class GiftCodeShareLog extends AbstractEntity {
	@Id(strategy = Strategy.AUTO)
	@Column(comment = "记录ID")
	private long id;
	@Column(comment = "礼包码ID", readonly = true)
	private long giftId;
	@Column(comment = "礼包码", readonly = true)
	private String code;
	@Column(comment = "玩家ID")
	private long playerId;
	@Column(comment = "玩家名称")
	private String playerName;
	@Column(comment = "服务器ID")
	private int serverId;
	@Column(comment = "服务器名字")
	private String serverName;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public long getPlayerId() {
		return playerId;
	}

	public void setPlayerId(long playerId) {
		this.playerId = playerId;
	}

	public String getPlayerName() {
		return playerName;
	}

	public void setPlayerName(String playerName) {
		this.playerName = playerName;
	}

	public int getServerId() {
		return serverId;
	}

	public void setServerId(int serverId) {
		this.serverId = serverId;
	}

	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public long getGiftId() {
		return giftId;
	}

	public void setGiftId(long giftId) {
		this.giftId = giftId;
	}
	
	@Override
	public long idGenerator() {
		return 1L;
	}
}
